package com.netty.clientserver.packet.base;

import com.netty.common.entity.User;
import lombok.Data;

/**
 * @author LiuXiaoYu
 * @date 2022/2/2- 14:32
 */
@Data
public abstract class Packet {
    private Byte version = 1;

    private String message;

    private String ownerImage;

    /**
     * 模板方法
     * 通过此方法获取是什么包
     */
    public abstract Integer getCommand();
}
